/**
 * 
 */
package com.nwpusp.model.session;

import java.io.Serializable;

/**
 * @author JustinCao
 *
 */
public class ConnectionId implements Serializable {

	public final static ConnectionId BROADCAST_ConnectionId = new ConnectionId(-1);
	@Override
	public boolean equals(Object target) {
		if(target instanceof ConnectionId){
			return ((ConnectionId)target).getCid() == getCid(); 
		}
		return false;
	}
	private long cid = 0L;
	private String name = "";
	public ConnectionId(long cid) {
		this.cid = cid;
	}
	public long getCid() {
		return cid;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
}
